home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 2 / BBS in a box - Trilogy II.iso / Files / Hyper / B / BabyNamesStack / BabyNamesStack / background_3316.txt < prev    next >
Encoding:
Text File  |  1990-10-21  |  5.5 KB  |  267 lines

  1. -- background: 3316 from stack: in
  2. -- bmap block id: 3761
  3. -- flags: 4000
  4. -- background id: 0
  5. -- name: BoysNames
  6. ----- HyperTalk script -----
  7. on openCard
  8.   get bg fld "flag"
  9.   if it is 1 then
  10.     set hilite of bg btn "flag" to true
  11.   else if it ‚↠1 then
  12.     set hilite of bg btn "flag" to false
  13.   end if
  14. end openCard
  15.  
  16. on closeCard
  17.   get hilite of bg btn "flag"
  18.   if it is true then
  19.     put 1 into bg fld "flag"
  20.   else if it is false then
  21.     put 0 into bg fld "flag"
  22.   end if
  23.   put bg fld "BoysName" into it
  24.   set the name of this cd to it
  25.   pass closeCard
  26. end closeCard
  27.  
  28.  
  29.  
  30. -- part 1 (field)
  31. -- low flags: 02
  32. -- high flags: 4000
  33. -- rect: left=120 top=79 right=128 bottom=509
  34. -- title width / last selected line: 0
  35. -- icon id / first selected line: 0 / 0
  36. -- text alignment: 0
  37. -- font id: 20
  38. -- text size: 36
  39. -- style flags: 0
  40. -- line height: 48
  41. -- part name: boysName
  42.  
  43.  
  44. -- part 2 (field)
  45. -- low flags: 02
  46. -- high flags: 4000
  47. -- rect: left=120 top=125 right=158 bottom=509
  48. -- title width / last selected line: 0
  49. -- icon id / first selected line: 0 / 0
  50. -- text alignment: 0
  51. -- font id: 20
  52. -- text size: 24
  53. -- style flags: 0
  54. -- line height: 32
  55. -- part name: boysname2
  56.  
  57.  
  58. -- part 5 (field)
  59. -- low flags: 02
  60. -- high flags: 4000
  61. -- rect: left=120 top=158 right=192 bottom=509
  62. -- title width / last selected line: 0
  63. -- icon id / first selected line: 0 / 0
  64. -- text alignment: 0
  65. -- font id: 20
  66. -- text size: 24
  67. -- style flags: 0
  68. -- line height: 32
  69. -- part name: origin
  70.  
  71.  
  72. -- part 6 (field)
  73. -- low flags: 02
  74. -- high flags: 4000
  75. -- rect: left=120 top=191 right=256 bottom=509
  76. -- title width / last selected line: 0
  77. -- icon id / first selected line: 0 / 0
  78. -- text alignment: 0
  79. -- font id: 20
  80. -- text size: 24
  81. -- style flags: 0
  82. -- line height: 32
  83. -- part name: 
  84.  
  85.  
  86. -- part 14 (button)
  87. -- low flags: 00
  88. -- high flags: 2000
  89. -- rect: left=63 top=234 right=278 bottom=107
  90. -- title width / last selected line: 0
  91. -- icon id / first selected line: 0 / 0
  92. -- text alignment: 1
  93. -- font id: 0
  94. -- text size: 12
  95. -- style flags: 0
  96. -- line height: 16
  97. -- part name: Add Name
  98. ----- HyperTalk script -----
  99. on mouseUp
  100.   answer "Add a new name or delete this name?" with "Add" or "Delete" or "Cancel"
  101.  
  102.   if it is "Add" then
  103.     doMenu "New Card"
  104.     click at the loc of bg fld 1
  105.     put 0 into cd fld "sortboys" of cd 1
  106.   else if it is "Delete" then
  107.     doMenu "Delete Card"
  108.     put 0 into cd fld "sortboys" of cd 1
  109.   end if
  110. end mouseUp
  111.  
  112.  
  113.  
  114. -- part 15 (button)
  115. -- low flags: 00
  116. -- high flags: 2000
  117. -- rect: left=16 top=234 right=278 bottom=60
  118. -- title width / last selected line: 0
  119. -- icon id / first selected line: 0 / 0
  120. -- text alignment: 1
  121. -- font id: 0
  122. -- text size: 12
  123. -- style flags: 0
  124. -- line height: 16
  125. -- part name: Main
  126. ----- HyperTalk script -----
  127. on mouseUp
  128.   visual effect iris open
  129.   go cd 1
  130. end mouseUp
  131.  
  132.  
  133.  
  134. -- part 16 (button)
  135. -- low flags: 00
  136. -- high flags: 2000
  137. -- rect: left=16 top=283 right=328 bottom=60
  138. -- title width / last selected line: 0
  139. -- icon id / first selected line: 0 / 0
  140. -- text alignment: 1
  141. -- font id: 0
  142. -- text size: 12
  143. -- style flags: 0
  144. -- line height: 16
  145. -- part name: Prev
  146. ----- HyperTalk script -----
  147. on mouseStillDown
  148.   go previous cd
  149. end mouseStillDown
  150.  
  151.  
  152.  
  153. -- part 17 (button)
  154. -- low flags: 00
  155. -- high flags: 2000
  156. -- rect: left=63 top=283 right=327 bottom=107
  157. -- title width / last selected line: 0
  158. -- icon id / first selected line: 0 / 0
  159. -- text alignment: 1
  160. -- font id: 0
  161. -- text size: 12
  162. -- style flags: 0
  163. -- line height: 16
  164. -- part name: Next
  165. ----- HyperTalk script -----
  166. on mouseStillDown
  167.   go next cd
  168. end mouseStillDown
  169.  
  170.  
  171. -- part 18 (button)
  172. -- low flags: 00
  173. -- high flags: 2000
  174. -- rect: left=461 top=25 right=65 bottom=505
  175. -- title width / last selected line: 0
  176. -- icon id / first selected line: 11045 / 11045
  177. -- text alignment: 1
  178. -- font id: 0
  179. -- text size: 12
  180. -- style flags: 0
  181. -- line height: 16
  182. -- part name: Home
  183. ----- HyperTalk script -----
  184. on mouseUp
  185.   visual effect dissolve
  186.   go to stack "Home"
  187. end mouseUp
  188.  
  189.  
  190.  
  191. -- part 20 (field)
  192. -- low flags: 81
  193. -- high flags: 0002
  194. -- rect: left=408 top=321 right=337 bottom=433
  195. -- title width / last selected line: 0
  196. -- icon id / first selected line: 0 / 0
  197. -- text alignment: 0
  198. -- font id: 3
  199. -- text size: 12
  200. -- style flags: 0
  201. -- line height: 16
  202. -- part name: flag
  203.  
  204.  
  205. -- part 21 (button)
  206. -- low flags: 00
  207. -- high flags: A005
  208. -- rect: left=453 top=254 right=275 bottom=507
  209. -- title width / last selected line: 0
  210. -- icon id / first selected line: 0 / 0
  211. -- text alignment: 1
  212. -- font id: 0
  213. -- text size: 12
  214. -- style flags: 0
  215. -- line height: 16
  216. -- part name: Flag
  217. ----- HyperTalk script -----
  218. on mouseUp
  219.   if the hilite of me = true then
  220.     get cd fld "boysFlag" of cd 2
  221.     put it + 1 into cd fld "boysFlag" of cd 2
  222.   else if the hilite of me = false then
  223.     get cd fld "boysFlag" of cd 2
  224.     put it - 1 into cd fld "boysFlag" of cd 2
  225.   end if
  226.   put 0 into cd fld "flagChangeB" of cd 1
  227. end mouseUp
  228.  
  229.  
  230.  
  231. -- part 22 (field)
  232. -- low flags: 02
  233. -- high flags: 4000
  234. -- rect: left=120 top=277 right=342 bottom=509
  235. -- title width / last selected line: 0
  236. -- icon id / first selected line: 0 / 0
  237. -- text alignment: 0
  238. -- font id: 21
  239. -- text size: 12
  240. -- style flags: 0
  241. -- line height: 16
  242. -- part name: Namesakes
  243.  
  244.  
  245. -- part 23 (button)
  246. -- low flags: 00
  247. -- high flags: 2000
  248. -- rect: left=5 top=24 right=67 bottom=107
  249. -- title width / last selected line: 0
  250. -- icon id / first selected line: 0 / 0
  251. -- text alignment: 1
  252. -- font id: 0
  253. -- text size: 12
  254. -- style flags: 0
  255. -- line height: 16
  256. -- part name: boys
  257. ----- HyperTalk script -----
  258. on mouseUp
  259.   get XScrollBox(0,"Choose a name:",card field "boySorted" of cd 1)
  260.   if it is empty then
  261.   else
  262.     get second item of it
  263.     go to cd it
  264.   end if
  265. end mouseUp
  266.  
  267.